//
//  WKColorAndSizeDefine.h
//  WKMaybell
//
//  Created by 何文虎 on 2018/12/5.
//  Copyright © 2018年 何文虎. All rights reserved.
//

#ifndef WKColorAndSizeDefine_h
#define WKColorAndSizeDefine_h

// rgb颜色转换（16进制->10进制）
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define UIColorFromHex(hexValue)            UIColorFromRGB(hexValue)

//带有RGBA的颜色设置
#define COLOR(R, G, B, A) [UIColor colorWithRed:R/255.0f green:G/255.0f blue:B/255.0f alpha:A]

// 随机色
#define WHRandomColor  COLOR(arc4random_uniform(256), arc4random_uniform(256), arc4random_uniform(256), 1.0)

// 获取RGB颜色
#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255.0f green:g/255.0f blue:b/255.0f alpha:a]
#define RGB(r,g,b) RGBA(r,g,b,1.0f)

////////////////////////////////////////////////////////


/**
 *  字体及大小
 *
 *  @return 字体大小
 */
#define TitleFont [UIFont fontWithName:@"Helvetica Neue" size:18.0]
#define ListTitleFont [UIFont fontWithName:@"Helvetica Neue" size:16.0]
#define ListDetailFont [UIFont fontWithName:@"Helvetica Neue" size:14.0]
#define ListTimeFont [UIFont fontWithName:@"Helvetica Neue" size:12.0]
#define FONT_CHAT    [UIFont fontWithName:@"Helvetica Neue" size:14.0]
#define ConfirmTitleFont  [UIFont fontWithName:@"Helvetica Neue" size:15.0]
#define ListMixFont [UIFont fontWithName:@"Helvetica Neue" size:10.0]

#define NaviTitleFont [UIFont fontWithName:@"Helvetica Neue" size:16.0]

#define TitleColor UIColorFromHex(0x3C3C3C)
#define DetailColor UIColorFromHex(0x666666)
#define TimeColor UIColorFromHex(0x979797)


#define PFSC_SemiboldFont(ft) [UIFont fontWithName:@"PingFangSC-Semibold" size:ft]
#define PFSC_RegularFont(ft) [UIFont fontWithName:@"PingFang-SC-Regular" size:ft]
#define PFSC_BoldFont(ft) [UIFont fontWithName:@"PingFang-SC-Bold" size:ft]
#define PFSC_MediumFont(ft) [UIFont fontWithName:@"PingFang-SC-Medium" size:ft]
#define HEBoldFont(ft) [UIFont fontWithName:@"Helvetica-Bold" size:ft]

//lable边缘的蓝绿色
#define LBlayerColor UIColorFromHex(0x006666)

////////////////////////////////////////////////////////////
//背景色
#define BACKGROUND_COLOR UIColorFromHex(0xF4F4F4)
//清除背景色
#define CLEARCOLOR [UIColor clearColor]

//item大小
//naviagationBar颜色
#define NavationColor UIColorFromHex(0x52cac1)
//TabBar未选中字体颜色
#define textTabBarNormalColor  UIColorFromHex(0x999999)
//TabBar选中字体颜色
#define textTbaBarSelecetColor UIColorFromHex(0x33cc99)

#define cornerRadiusValue 5.0f
//主色调(粉)
#define BACK_COLOR UIColorFromHex(0xF54050)
//按钮颜色
#define BUTTONGREEN_COLOR UIColorFromHex(0x3BA748)
//浅灰色背景
#define DEFAULTBACKVIEW_COLOR UIColorFromHex(0xEAEAEA)
//主色调(蓝色)
#define BLUE_BGCOLOR UIColorFromHex(0x327FF1) //主题蓝色

//线的颜色
#define LINEBACK_COLOR UIColorFromHex(0xF4F4F4)

//橙色字体
#define LABLETEXTCOLOR_orange UIColorFromHex(0xF1994E)
//浅灰色字体颜色
#define LABLETEXTCOLOR_lightGray UIColorFromHex(0x9999)

//商城背景色调
#define SHOPPING_COLOR UIColorFromHex(0xF5F5F5)



#endif /* WKColorAndSizeDefine_h */
